package com.example.springboottask.controller;

import com.example.springboottask.service.AsyncService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author jie
 * @date 2019/3/26 0026 -16:48
 */
@RestController
public class AsyncController {

    @Resource
    AsyncService asyncService;

    @GetMapping("hello")
    public String hello(){
        asyncService.hello();
        return "success";
    }

}
